package ro.uaic.info.fmse.context.transformers.generic;

import ro.uaic.info.fmse.context.transformers.items.MyCloneable;

public class Edge<T extends MyCloneable> {
	Node<T> source, target;

	public Edge(Node<T> source, Node<T> target) {
		this.source = source;
		this.target = target;
	}

	public Node<T> getSource() {
		return source;
	}

	public Node<T> getTarget() {
		return target;
	}

	@Override
	public String toString() {
		return "(" + source.label + ", " + target.label + ")";
	}
}